/*
 * @Author: Wangtao
 * @Date: 2020-10-31 17:58:48
 * @LastEditors: zhanwang
 * @LastEditTime: 2021-11-17 13:59:54
 */
import customerConfig from './asyncRoutes/modules/customer_config'
export default [
  {
    path: 'user_management',
    name: 'Agent',
    meta: {
      title: '座席',
      group: 'organization',
      roles: ['user_management']
    },
    component: () => import(/* webpackChunkName: "agent" */ '@/views/config/agent/index.vue')
  },
  {
    path: 'skillGroup_management',
    name: 'Queue',
    meta: {
      title: '技能组',
      group: 'organization',
      roles: ['skillGroup_management']
    },
    component: () => import(/* webpackChunkName: "queue" */ '@/views/config/queue/index.vue')
  },
  {
    path: 'role_management',
    name: 'Role',
    meta: {
      title: '角色',
      group: 'organization',
      roles: ['role_management']
    },
    component: () => import(/* webpackChunkName: "role" */ '@/views/config/role/index.vue')
  },
  {
    path: 'number_management',
    name: 'Number',
    meta: {
      title: '号码管理',
      group: 'call_center',
      roles: ['number_management']
    },
    component: () => import(/* webpackChunkName: "number" */ '@/views/config/number/index.vue')
  },
  {
    path: 'voice_navigation',
    name: 'Ivr',
    meta: {
      title: '语音导航',
      group: 'call_center',
      roles: ['voice_navigation']
    },
    component: () => import(/* webpackChunkName: "ivr" */ '@/views/config/ivr/index.vue')
  },
  {
    path: 'base_setting',
    name: 'Basic',
    meta: {
      title: '基本设置',
      group: 'call_center',
      roles: ['base_setting']
    },
    component: () => import(/* webpackChunkName: "basic" */ '@/views/config/basic/index.vue')
  },
  {
    path: 'channel_setting_multi',
    name: 'Channel',
    meta: {
      title: '网页',
      group: 'qdgl',
      roles: ['channel_setting_multi']
    },
    component: () => import(/* webpackChunkName: "channelPcAndWap" */ '@/views/config/webchat/channel/pcAndWap/index.vue')
  },
  {
    path: 'channel_setting_wechat',
    name: 'wechat',
    meta: {
      title: '微信公众号',
      group: 'qdgl',
      roles: ['channel_setting_wechat']
    },
    component: () => import(/* webpackChunkName: "wechat" */ '@/views/config/webchat/channel/wechat/index.vue')
  },
  {
    path: 'channel_setting_wechatApp',
    name: 'wechatApp',
    meta: {
      title: '微信小程序',
      group: 'qdgl',
      roles: ['channel_setting_wechatApp']
    },
    component: () => import(/* webpackChunkName: "wechatApp" */ '@/views/config/webchat/channel/wechatApp/index.vue')
  },
  {
    path: 'channel_setting_sdk',
    name: 'sdk',
    meta: {
      title: '移动SDK',
      group: 'qdgl',
      roles: ['channel_setting_sdk']
    },
    component: () => import(/* webpackChunkName: "wechatApp" */ '@/views/config/webchat/channel/sdk/index.vue')
  },
  {
    path: 'channel_setting_baiduBCP',
    name: 'baiduBCP',
    meta: {
      title: '百度营销',
      group: 'qdgl',
      roles: ['channel_setting_baiduBCP']
    },
    component: () => import(/* webpackChunkName: "baiduBCP" */ '@/views/config/webchat/channel/baiduBCP/index.vue')
  },
  {
    path: 'channel_setting_wechatService',
    name: 'wechatService',
    meta: {
      title: '微信客服',
      group: 'qdgl',
      roles: ['channel_setting_wxkf']
    },
    component: () => import(/* webpackChunkName: "wechatService" */ '@/views/config/webchat/channel/wechatService/index.vue')
  },
  {
    path: 'enterprise_wechat',
    name: 'enterprise_wechat',
    meta: {
      title: '企业微信',
      group: 'qdgl',
      roles: ['enterprise_wechat']
    },
    component: () => import(/* webpackChunkName: "eprWechat" */ '@/views/config/webchat/channel/eprWechat/index.vue')
  },
  {
    path: 'channel_setting_process',
    name: 'Process',
    meta: {
      title: '流程管理',
      group: 'im_center',
      roles: ['channel_setting_process']
    },
    component: () => import(/* webpackChunkName: "process" */ '@/views/config/webchat/process/index.vue')
  },
  {
    title: '全局设置',
    path: 'globalSetting',
    name: 'WebchatGlobalSetting',
    meta: {
      title: '全局设置',
      group: 'im_center',
      roles: ['im_global_set']
    },
    component: () => import(/* webpackChunkName: "WebchatGlobalSetting" */ '@/views/config/webchat/globalSetting/index.vue')
  },
  ...customerConfig,
  {
    path: 'customer_template_setting/setting',
    name: 'CustomerTemplateSetting',
    meta: {
      group: 'customer_setting',
      title: '模板设置',
      roles: ['customer_setting']
    },
    component: () => import(/* webpackChunkName: "customer-template-setting" */ '@/views/config/template/setting.vue')
  },
  {
    path: 'customer_template_setting/edit/:_id*',
    name: 'TemplateEdit',
    component: () => import(/* webpackChunkName: "customer-template-edit" */ '@/views/config/template/edit.vue')
  },
  {
    path: 'customer_template_setting/settingUserPermissions*',
    name: 'SettingUserPermissions',
    component: () => import(/* webpackChunkName: "setting-user-permissions" */ '@/views/config/template/permissions.vue')
  },
  {
    path: 'label',
    name: 'Label',
    component: () => import(/* webpackChunkName: "label" */ '@/views/config/label/index.vue')
  },
  {
    path: 'docking_setting',
    name: 'interface',
    meta: {
      title: '对接设置',
      group: 'system_setting',
      roles: ['docking_setting']
    },
    component: () => import(/* webpackChunkName: "interface" */ '@/views/config/interface/index.vue')
  },
  {
    path: 'work_time_setting',
    name: 'worktime',
    meta: {
      title: '工作时间设置',
      group: 'system_setting',
      roles: ['work_time_setting']
    },
    component: () => import(/* webpackChunkName: "worktime" */ '@/views/config/ivr/timeConfig/index.vue')
  },
  {
    path: 'notice_setting',
    name: 'noticeSetting',
    meta: {
      title: '公告管理',
      group: 'system_setting',
      roles: ['notice_management']
    },
    component: () => import(/* webpackChunkName: "noticeSetting" */ '@/views/config/notice/index.vue')
  }
]
